package com.wx_shop.admin.domain.gen;

import java.io.Serializable;

public class SuperConfRegion implements Serializable {
    private Integer id;

    /**
     * 行政区划代码
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 级别0国家1省2市3区
     */
    private Byte level;

    /**
     * 父级ID
     */
    private Integer pid;

    /**
     * 英文名
     */
    private String en;

    /**
     * 英文缩写
     */
    private String shortEn;

    /**
     * 邮编
     */
    private String zip;

    /**
     * 电话区号
     */
    private String tel;

    /**
     * 创建时间
     */
    private Integer createTime;

    /**
     * 更新时间
     */
    private Integer updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 行政区划代码
     */
    public String getCode() {
        return code;
    }

    /**
     * 行政区划代码
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 名称
     */
    public String getName() {
        return name;
    }

    /**
     * 名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 级别0国家1省2市3区
     */
    public Byte getLevel() {
        return level;
    }

    /**
     * 级别0国家1省2市3区
     */
    public void setLevel(Byte level) {
        this.level = level;
    }

    /**
     * 父级ID
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * 父级ID
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * 英文名
     */
    public String getEn() {
        return en;
    }

    /**
     * 英文名
     */
    public void setEn(String en) {
        this.en = en;
    }

    /**
     * 英文缩写
     */
    public String getShortEn() {
        return shortEn;
    }

    /**
     * 英文缩写
     */
    public void setShortEn(String shortEn) {
        this.shortEn = shortEn;
    }

    /**
     * 邮编
     */
    public String getZip() {
        return zip;
    }

    /**
     * 邮编
     */
    public void setZip(String zip) {
        this.zip = zip;
    }

    /**
     * 电话区号
     */
    public String getTel() {
        return tel;
    }

    /**
     * 电话区号
     */
    public void setTel(String tel) {
        this.tel = tel;
    }

    /**
     * 创建时间
     */
    public Integer getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Integer getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", level=").append(level);
        sb.append(", pid=").append(pid);
        sb.append(", en=").append(en);
        sb.append(", shortEn=").append(shortEn);
        sb.append(", zip=").append(zip);
        sb.append(", tel=").append(tel);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperConfRegion other = (SuperConfRegion) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getEn() == null ? other.getEn() == null : this.getEn().equals(other.getEn()))
            && (this.getShortEn() == null ? other.getShortEn() == null : this.getShortEn().equals(other.getShortEn()))
            && (this.getZip() == null ? other.getZip() == null : this.getZip().equals(other.getZip()))
            && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getEn() == null) ? 0 : getEn().hashCode());
        result = prime * result + ((getShortEn() == null) ? 0 : getShortEn().hashCode());
        result = prime * result + ((getZip() == null) ? 0 : getZip().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}